package com.th.auth.service.impl;

import java.util.List;

import com.th.common.enums.AuthType;
import com.th.common.enums.ExamineResultStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.th.auth.mapper.UsUserAuthApplyMapper;
import com.th.auth.domain.UsUserAuthApply;
import com.th.auth.service.IUsUserAuthApplyService;

/**
 * 客户认证申请Service业务层处理
 *
 * @author ruoyi
 * @date 2023-06-24
 */
@Service
public class UsUserAuthApplyServiceImpl implements IUsUserAuthApplyService
{
    @Autowired
    private UsUserAuthApplyMapper usUserAuthApplyMapper;

    /**
     * 查询客户认证申请
     *
     * @param id 客户认证申请主键
     * @return 客户认证申请
     */
    @Override
    public UsUserAuthApply selectUsUserAuthApplyById(Long id)
    {
        return usUserAuthApplyMapper.selectUsUserAuthApplyById(id);
    }

    /**
     * 查询客户认证申请列表
     *
     * @param usUserAuthApply 客户认证申请
     * @return 客户认证申请
     */
    @Override
    public List<UsUserAuthApply> selectUsUserAuthApplyList(UsUserAuthApply usUserAuthApply)
    {
        return usUserAuthApplyMapper.selectUsUserAuthApplyList(usUserAuthApply);
    }

    /**
     * 新增客户认证申请
     *
     * @param usUserAuthApply 客户认证申请
     * @return 结果
     */
    @Override
    public int insertUsUserAuthApply(UsUserAuthApply usUserAuthApply)
    {
        return usUserAuthApplyMapper.insertUsUserAuthApply(usUserAuthApply);
    }

    /**
     * 修改客户认证申请
     *
     * @param usUserAuthApply 客户认证申请
     * @return 结果
     */
    @Override
    public int updateUsUserAuthApply(UsUserAuthApply usUserAuthApply)
    {

        return usUserAuthApplyMapper.updateUsUserAuthApply(usUserAuthApply);
    }

    /**
     * 批量删除客户认证申请
     *
     * @param ids 需要删除的客户认证申请主键
     * @return 结果
     */
    @Override
    public int deleteUsUserAuthApplyByIds(Long[] ids)
    {
        return usUserAuthApplyMapper.deleteUsUserAuthApplyByIds(ids);
    }

    /**
     * 删除客户认证申请信息
     *
     * @param id 客户认证申请主键
     * @return 结果
     */
    @Override
    public int deleteUsUserAuthApplyById(Long id)
    {
        return usUserAuthApplyMapper.deleteUsUserAuthApplyById(id);
    }
}